package com.yunti.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 教师对象 base_teacher
 *
 * @author yangtt
 * @date 2024-11-22
 */

@Data
@Accessors(chain = true)
@TableName("base_teacher")
public class BaseTeacher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 单位id */
    private Long unitId;

    @Excel(name = "单位")
    @TableField(exist = false)
    private String unitName;

    @TableField(exist = false)
    private String groupName;

    /** 组别类型，1小学组，2，初中组，3高中组 */
    @Excel(name = "组别id",readConverterExp = "1=小学组,2=初中组,3=高中组")
    private Long groupId;

    @Excel(name = "性别",readConverterExp = "1=男,2=女")
    private Integer sex;

    /** 头像路径 */
    private String avatarSrc;

    /** 教师名 */
    @Excel(name = "教师名")
    private String teacherName;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    /** 赛事id */
    private Long raceId;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String mobile;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUnitId(Long unitId)
    {
        this.unitId = unitId;
    }

    public Long getUnitId()
    {
        return unitId;
    }
    public void setGroupId(Long groupType)
    {
        this.groupId = groupType;
    }

    public Long getGroupId()
    {
        return groupId;
    }
    public void setAvatarSrc(String avatarSrc)
    {
        this.avatarSrc = avatarSrc;
    }

    public String getAvatarSrc()
    {
        return avatarSrc;
    }
    public void setTeacherName(String teacherName)
    {
        this.teacherName = teacherName;
    }

    public String getTeacherName()
    {
        return teacherName;
    }
    public void setIdCard(String idCard)
    {
        this.idCard = idCard;
    }

    public String getIdCard()
    {
        return idCard;
    }
    public void setRaceId(Long raceId)
    {
        this.raceId = raceId;
    }

    public Long getRaceId()
    {
        return raceId;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getMobile()
    {
        return mobile;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("unitId", getUnitId())
            .append("groupType", getGroupId())
            .append("avatarSrc", getAvatarSrc())
            .append("teacherName", getTeacherName())
            .append("idCard", getIdCard())
            .append("raceId", getRaceId())
            .append("mobile", getMobile())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
